<template>
  <div class="mapstate">
    <button class="jump-btn" @click="showCount">click show count</button>
  </div>
</template>

<script>
import { mapState } from 'vuex'

export default {
  name: 'MapState',
  computed: {
    ...mapState(['count'])
  },
  methods: {
    showCount() {
      console.log(this.count)
    }
  }
}
</script>